package summer_vacation.yangyiqing.m201508;
import java.util.Scanner;

/**
 * Created by Administrator on 2015/8/17 0017.
 */
public class Java_13 {
    public static void main(String[] args){
        System.out.println("请输入一个数：");
        Scanner num=new Scanner(System.in);
        int s=num.nextInt();
        System.out.println(s+"的所有因子为：");
        for(int i=1;i<=s;i++){
            if(s%i==0){
                System.out.printf(i+" ");
            }
        }
    }
}
